package pwd.allen.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;
import java.util.List;

@AllArgsConstructor
@Data
public class StudentEntity implements java.io.Serializable {
    @Excel(name = "学生姓名", height = 20, width = 30, needMerge = true)
    private String name;
    /**
     * 学生性别
     */
    @Excel(name = "学生性别", replace = { "男_1", "女_2" }, suffix = "生", needMerge = true)
    private int sex;

    @Excel(name = "出生日期", format = "yyyy-MM-dd", width = 20, needMerge = true)
    private Date birthday;

    @ExcelCollection(name = "课程信息")
    private List<CourseEntity> courses;
}
